# Michael Depuy
# depuym@onid.orst.edu
# CS311-400
# Homework 2


import subprocess
import os
import shlex
import sys
import stat
import urllib2

sys.argv[1] = "http://" + sys.argv[1]
req = urllib2.Request(sys.argv[1])
res = urllib2.urlopen(req)
page = res.read()

fd = open(sys.argv[2],"a+")

fd.write(page)

fd.close()
